//
//  WOTimeSection.m
//  WOPrototype
//
//  Created by Olof Millberg on 2010-04-28.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "WOTimeSection.h"
#import "WOTableSection.h"

@implementation WOTimeSection
@synthesize timeReports;

+ (id) timeSectionWithList:(NSMutableArray*)list
{
	WOTimeSection *section = [[[WOTimeSection alloc] initWithList:list] autorelease];
	return section;
}

- (id) initWithList:(NSMutableArray*)list
{
	if (self = [super init])
	{
		self.timeReports = list;
	}
	return self;
}

- (NSInteger) numberOfRows
{
	return [timeReports count];
}

- (NSString *) identifierAtRow:(NSInteger)row
{
	return @"TimeReportCell";
}

- (CGFloat) heightForRow:(NSInteger)row
{
	return 64;
}


@end